<?php
/*
 * Created on 26/08/2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
	include("../conexao/conexao.php");
	$conn 	= conectar();
	include("../funcoes/config.php");
	$config		= new config();
	$retorno	= "";
	
	$query	= str_replace("?",date("Y-m-d"),$config -> sql_gecko_aniversariantes_from);
	
	$result =  mysql_query($query) or die($config -> msg_erro_banco_consulta . mysql_error());
	$total = mysql_num_rows($result);
	
	if($total > 0 ){
		while ($row = mysql_fetch_assoc($result)):
			$retorno .= $row['nome']." | ";
		endwhile;
		echo "<div style='float:left'><img src='./images/birthday.png' width='45px' height='45px' title='Aniversariantes do dia'> </div><div style='float:left'>" . substr($retorno,0,strlen($retorno)-3)."</div>";
	}else{
		echo 0;
	}
?>
